﻿using MongoDB.Attributes;
using System;

namespace Resn.WhuPub.DML
{
        /// <summary>
        /// 差旅数据模型
        /// </summary>

        public class TravelModel:IIdentity
        {
                /// <summary>
                /// 获取或设置标识
                /// </summary>
                /// <value>
                /// 标识
                /// </value>
                [MongoId]
                public String Id { get; set; }

                /// <summary>
                /// 获取或设置员工标识
                /// </summary>
                /// <value>
                /// 员工标识
                /// </value>
                public String EmployeeId { get; set; }

                /// <summary>
                /// 获取或设置计划内容
                /// </summary>
                /// <value>
                /// 计划内容
                /// </value>
                public String PlanContent { get; set; }

                /// <summary>
                /// 获取或设置计划是否已审批
                /// </summary>
                /// <value>
                /// 计划是否已审批
                /// </value>
                public bool IsPlanApproved { get; set; }

                /// <summary>
                /// 获取或设置计划修改意见
                /// </summary>
                /// <value>
                /// 计划修改意见
                /// </value>
                public String PlanModify { get; set; }

                /// <summary>
                /// 获取或设置计划是否已确认
                /// </summary>
                /// <value>
                /// 计划是否已确认
                /// </value>
                public bool IsPlanConfirmed { get; set; }

                /// <summary>
                /// 获取或设置计划借款金额
                /// </summary>
                /// <value>
                /// 计划借款金额
                /// </value>
                public Double LendAmount { get; set; }

                /// <summary>
                /// 获取或设置开始时间
                /// </summary>
                /// <value>
                /// 开始时间
                /// </value>
                public DateTime StartTime { get; set; }

                /// <summary>
                /// 获取或设置结束时间
                /// </summary>
                /// <value>
                /// 结束时间
                /// </value>
                public DateTime EndTime { get; set; }

                /// <summary>
                /// 获取或设置备注
                /// </summary>
                /// <value>
                /// 备注
                /// </value>
                public String Memo { get; set; }
        }
}